package com.ktgj.hotel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.hotel.mapper.HotelCommentTravelTypeMapper;
import com.ktgj.hotel.domain.HotelCommentTravelType;
import com.ktgj.hotel.service.IHotelCommentTravelTypeService;

/**
 * 出行类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-08
 */
@Service
public class HotelCommentTravelTypeServiceImpl implements IHotelCommentTravelTypeService 
{
    @Autowired
    private HotelCommentTravelTypeMapper hotelCommentTravelTypeMapper;

    /**
     * 查询出行类型
     * 
     * @param traveltypeid 出行类型ID
     * @return 出行类型
     */
    @Override
    public HotelCommentTravelType selectHotelCommentTravelTypeById(Long traveltypeid)
    {
        return hotelCommentTravelTypeMapper.selectHotelCommentTravelTypeById(traveltypeid);
    }

    /**
     * 查询出行类型列表
     * 
     * @param hotelCommentTravelType 出行类型
     * @return 出行类型
     */
    @Override
    public List<HotelCommentTravelType> selectHotelCommentTravelTypeList(HotelCommentTravelType hotelCommentTravelType)
    {
        return hotelCommentTravelTypeMapper.selectHotelCommentTravelTypeList(hotelCommentTravelType);
    }

    /**
     * 新增出行类型
     * 
     * @param hotelCommentTravelType 出行类型
     * @return 结果
     */
    @Override
    public int insertHotelCommentTravelType(HotelCommentTravelType hotelCommentTravelType)
    {
        return hotelCommentTravelTypeMapper.insertHotelCommentTravelType(hotelCommentTravelType);
    }

    /**
     * 修改出行类型
     * 
     * @param hotelCommentTravelType 出行类型
     * @return 结果
     */
    @Override
    public int updateHotelCommentTravelType(HotelCommentTravelType hotelCommentTravelType)
    {
        return hotelCommentTravelTypeMapper.updateHotelCommentTravelType(hotelCommentTravelType);
    }

    /**
     * 批量删除出行类型
     * 
     * @param traveltypeids 需要删除的出行类型ID
     * @return 结果
     */
    @Override
    public int deleteHotelCommentTravelTypeByIds(Long[] traveltypeids)
    {
        return hotelCommentTravelTypeMapper.deleteHotelCommentTravelTypeByIds(traveltypeids);
    }

    /**
     * 删除出行类型信息
     * 
     * @param traveltypeid 出行类型ID
     * @return 结果
     */
    @Override
    public int deleteHotelCommentTravelTypeById(Long traveltypeid)
    {
        return hotelCommentTravelTypeMapper.deleteHotelCommentTravelTypeById(traveltypeid);
    }
}
